package com.xqzgj.bill.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xqzgj.common.annotation.Excel;
import com.xqzgj.common.core.domain.BaseEntity;

/**
 * 收入记录对象 income
 * 
 * @author zhoujiam
 * @date 2025-03-30
 */
public class Income extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收入ID */
    private Long incomeId;

    /** 操作用户ID，关联sys_user表 */
    @Excel(name = "操作用户ID，关联sys_user表")
    private Long userId;

    /** 收入日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收入日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date incomeDate;

    /** 收入金额 */
    @Excel(name = "收入金额")
    private BigDecimal amount;

    /** 收入类别 (如销售、服务费等) */
    @Excel(name = "收入类别 (如销售、服务费等)")
    private String category;

    /** 收入描述 (可选) */
    @Excel(name = "收入描述 (可选)")
    private String description;

    /** 支付方式 (如现金、银行转账、支付宝等) */
    @Excel(name = "支付方式 (如现金、银行转账、支付宝等)")
    private String paymentMethod;

    /** 发票号 (如果有) */
    @Excel(name = "发票号 (如果有)")
    private String invoiceNumber;

    /** 收入状态（1正常，0待确认） */
    @Excel(name = "收入状态", readConverterExp = "1=正常，0待确认")
    private String status;

    public void setIncomeId(Long incomeId) 
    {
        this.incomeId = incomeId;
    }

    public Long getIncomeId() 
    {
        return incomeId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setIncomeDate(Date incomeDate) 
    {
        this.incomeDate = incomeDate;
    }

    public Date getIncomeDate() 
    {
        return incomeDate;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setInvoiceNumber(String invoiceNumber) 
    {
        this.invoiceNumber = invoiceNumber;
    }

    public String getInvoiceNumber() 
    {
        return invoiceNumber;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("incomeId", getIncomeId())
            .append("userId", getUserId())
            .append("incomeDate", getIncomeDate())
            .append("amount", getAmount())
            .append("category", getCategory())
            .append("description", getDescription())
            .append("paymentMethod", getPaymentMethod())
            .append("invoiceNumber", getInvoiceNumber())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
